package com.service.Impl;

import com.dao.CommentValueDao;
import com.service.CommentService;
import com.service.CommentValueService;

public class CommentValueServiceImpl implements CommentValueService {


    private CommentValueDao commentValueDao;

    public CommentValueServiceImpl(){}
    public CommentValueServiceImpl(CommentValueDao commentValueDao) {
        this.commentValueDao = commentValueDao;
    }

    @Override
    public int selectCountByUser_idAndComment_id(int user_id, int comment_id) {
        return commentValueDao.selectCountByUser_idAndComment_id(user_id,comment_id);
    }

    @Override
    public void insertCommentValue(int user_id, int comment_id) {
        commentValueDao.insertCommentValue(user_id,comment_id);
    }

    @Override
    public void deleteCommentValue(int user_id, int comment_id) {
        commentValueDao.deleteCommentValue(user_id,comment_id);
    }

    public CommentValueDao getCommentValueDao() {
        return commentValueDao;
    }

    public void setCommentValueDao(CommentValueDao commentValueDao) {
        this.commentValueDao = commentValueDao;
    }
}
